package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
    * 设备使用记录表
    */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="设备使用记录表")
@Data
@Accessors(chain = true)
@TableName(value = "device_use_log")
public class DeviceUseLog extends PublicPo implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="id")
    private Long id;

    /**
     * 设备id
     */
    @TableField(value = "device_id")
    @ApiModelProperty(value="设备id")
    private Long deviceId;

    /**
     * 用户id(usr表id)
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id(usr表id)")
    private Integer userId;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @ApiModelProperty(value="开始时间")
    private Date startTime;

    /**
     * 截止时间
     */
    @TableField(value = "end_time")
    @ApiModelProperty(value="截止时间")
    private Date endTime;

    private static final long serialVersionUID = 1L;
}